//
//  CategoryColor.swift
//  MusicApp
//
//  Created by tianjs on 2023/4/23.
//

import Foundation
import SwiftUI

func rgb(r: CGFloat, g: CGFloat, b: CGFloat) -> Color {
    Color(red:  r / 255.0, green: g / 255.0, blue: b / 255.0)
//    Color(uiColor: UIColor(red: r / 255.0, green: g / 255.0, blue: b / 255.0, alpha: 1.0))
}

func rgbA(r: CGFloat, g: CGFloat, b: CGFloat, a: CGFloat) -> Color {
    Color(uiColor: UIColor(red: r / 255.0, green: g / 255.0, blue: b / 255.0, alpha: a))
}
